package com.franklin.java.completion;

import com.intellij.codeInsight.completion.CompletionParameters;
import com.intellij.codeInsight.lookup.LookupElement;
import org.jetbrains.annotations.NotNull;

import java.util.List;

/**
 * @author Franklin
 * @since 2021/8/5 12:06
 */
public interface JavaCompletionContributor {

    List<LookupElement> getLookupElements(CompletionParameters parameters);

    default CompletionOrder getOrder(){
        return CompletionOrder.LOW;
    }

    boolean isCorrectCompletionParameter(@NotNull CompletionParameters parameters);
}
